package org.javaboy.vhr.service;
import org.javaboy.vhr.mapper.TrainRecordMapper;
import org.javaboy.vhr.model.TrainRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TrainRecordService {
    @Autowired
    TrainRecordMapper trainRecordMapper;

    public int addtrainrecord(TrainRecord trainRecord) {
        return trainRecordMapper.addtrainrecord(trainRecord) ;
    }
    public TrainRecord getTrainrecordById(Integer id) {
        return trainRecordMapper.getTrainrecordById( id);
    }
}
